package com.google.android.exoplayer2.metadata.scte35;

import android.os.Parcel;
import android.os.Parcelable.Creator;
import o.anc;

public final class PrivateCommand extends SpliceCommand {
    public static final Creator<PrivateCommand> CREATOR = new Creator<PrivateCommand>() {
        public /* synthetic */ Object createFromParcel(Parcel parcel) {
            return ˏ(parcel);
        }

        public /* synthetic */ Object[] newArray(int i) {
            return ˎ(i);
        }

        public PrivateCommand ˏ(Parcel parcel) {
            return new PrivateCommand(parcel);
        }

        public PrivateCommand[] ˎ(int i) {
            return new PrivateCommand[i];
        }
    };
    public final byte[] ˎ;
    public final long ˏ;
    public final long ॱ;

    private PrivateCommand(long j, byte[] bArr, long j2) {
        this.ˏ = j2;
        this.ॱ = j;
        this.ˎ = bArr;
    }

    private PrivateCommand(Parcel parcel) {
        this.ˏ = parcel.readLong();
        this.ॱ = parcel.readLong();
        this.ˎ = new byte[parcel.readInt()];
        parcel.readByteArray(this.ˎ);
    }

    public static PrivateCommand ˎ(anc o_anc, int i, long j) {
        long ˋॱ = o_anc.ˋॱ();
        byte[] bArr = new byte[(i - 4)];
        o_anc.ˎ(bArr, 0, bArr.length);
        return new PrivateCommand(ˋॱ, bArr, j);
    }

    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeLong(this.ˏ);
        parcel.writeLong(this.ॱ);
        parcel.writeInt(this.ˎ.length);
        parcel.writeByteArray(this.ˎ);
    }
}
